import cache from '@/plugins/cache'

const KEY = 'LockScreen'

export function status() {
  let lockStatus = cache.local.get(KEY)
  lockStatus = lockStatus ? true : false
  return lockStatus
}

export function lock() {
  return cache.local.set(KEY, 'lock')
}

export function unlock() {
  return cache.local.remove(KEY)
}
